package com.kyivmohyla.kma2;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.io.Serializable;
import java.util.Date;

@XmlRootElement(name = "order")
@XmlAccessorType(XmlAccessType.FIELD)
public class ImportOrder implements Serializable {
    @XmlElement(name = "customerName")
    private String customerName;
    @XmlElement(name = "customerPhone")
    private String customerPhone;
    @XmlElement(name = "customerAddress")
    private String customerAddress;
    @XmlElement(name = "customerEmail")
    private String customerEmail;
    @XmlElement(name = "desirableStart")
    @XmlJavaTypeAdapter(DateAdapter.class)
    private Date desirableStart;
    @XmlElement(name = "desirableEnd")
    @XmlJavaTypeAdapter(DateAdapter.class)
    private Date desirableEnd;
    @XmlElement(name = "commentary")
    private String commentary;

    public ImportOrder() {
    }

    public String getCommentary() {
        return commentary;
    }

    public void setCommentary(String commentary) {
        this.commentary = commentary;
    }

    public String getCustomerAddress() {
        return customerAddress;
    }

    public void setCustomerAddress(String customerAddress) {
        this.customerAddress = customerAddress;
    }

    public String getCustomerEmail() {
        return customerEmail;
    }

    public void setCustomerEmail(String customerEmail) {
        this.customerEmail = customerEmail;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerPhone() {
        return customerPhone;
    }

    public void setCustomerPhone(String customerPhone) {
        this.customerPhone = customerPhone;
    }

    public Date getDesirableEnd() {
        return desirableEnd;
    }

    public void setDesirableEnd(Date desirableEnd) {
        this.desirableEnd = desirableEnd;
    }

    public Date getDesirableStart() {
        return desirableStart;
    }

    public void setDesirableStart(Date desirableStart) {
        this.desirableStart = desirableStart;
    }
}
